// $codepro.audit.disable numericLiterals
/*
 Patient - A patient can do the following things:

    * log on to the system
    * request an appoStringment
    * view their medical history
    * 
    * Patient Information - Patient information consists of 3 primary items:

    * Personal information like name, address, phone, email, gender, age
    * Medical Information like pharmacy, insurance carrier, allergies
    * Medical History which is basically the collection of treatment records.
 */

/**
 * @author Team Awesome Express
 * @version $ Revision 1.0 $
 */
public class Patient extends Person {
	
	/**
	 * Field pharmacy.
	 */
	private String pharmacy;

	/**
	 * Field insurance.
	 */
	private String insurance;

	/**
	 * Field allergies.
	 */
	private String allergies;

	/**
	 * Constructor for Patient.
	 * @param name String
	 * @param lastname String
	 * @param gender String
	 * @param age String
	 * @param socialSecNum String
	 * @param phoneNum String
	 * @param address String
	 * @param email String
	 * @param allergies String
	 * @param pharmacy String
	 * @param insurance String
	 * @param loginName String
	 */
	public Patient(String name, // $codepro.audit.disable largeNumberOfParameters
			String lastname,
			String gender,
			String age,
			String socialSecNum,
			String phoneNum,
			String address,
			String email,
			String allergies,
			String pharmacy,
			String insurance,
			String loginName) {
		
		super(name, lastname, gender, age, socialSecNum, phoneNum, address, email, 
				  loginName);
		this.allergies = allergies;
		this.pharmacy = pharmacy;
		this.insurance = insurance;
	}

	/**
	 * Constructor for Patient.
	 * @param information String[]
	 */
	public Patient(String[] information){
		super(information[1],
				information[2],
				information[3],
				information[4],
				information[5],
				information[6],
				information[7],
				information[8],
				information[0]);
		this.allergies = information[9];
		this.pharmacy = information[10];
		this.insurance= information[11];
	}

	/**
	
	 * @return the pharmacy */
	public String getPharmacy() {
		return pharmacy;
	}

	/**
	 * @param pharmacy the pharmacy to set
	 */
	public void setPharmacy(String pharmacy) {
		this.pharmacy = pharmacy;
	}

	/**
	
	 * @return the insurance */
	public String getInsurance() {
		return insurance;
	}

	/**
	 * @param insurance the insurance to set
	 */
	public void setInsurance(String insurance) {
		this.insurance = insurance;
	}

	/**
	
	 * @return the allergies */
	public String getAllergies() {
		return allergies;
	}

	/**
	 * @param allergies the allergies to set
	 */
	public void setAllergies(String allergies) {
		this.allergies = allergies;
	}
		
} // End Patient Class
	

